package com.tianji.common.utils;

import java.time.LocalDateTime;

/**
 * TODO
 *
 * @Author whx
 * @Date 2025/1/11 15:26
 */
public class BitMapNumUtils {

    public static Long appendZero(Long num, LocalDateTime now){
        String numStr = num.toString();
        int length = numStr.length();
        int monthValue = now.getMonthValue();

        StringBuffer stringBuffer = new StringBuffer(numStr);
        if(length < monthValue){
            stringBuffer.append("0".repeat(monthValue - length));
        }

        return Long.valueOf(stringBuffer.toString());

    }

}
